<?php

/**
 * 
 * @export Loader
 */
class componentsLoader extends AbstractLoader {

    private static $path;

    private static function path() {
        if (!self::$path) {
            self::$path = Loader::toSinglePath("Models::Components::", "");
        }

        return self::$path;
    }

    protected function resolveObject($name) {
        $name = $name . "Component";

        $this->checkFile($name, self::path());

        $model = new $name();

        return $model;
    }

}

?>